package com.nervenets.general.web.params;

import com.nervenets.general.hibernate.DomainObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.List;

@Setter
@Getter
@NoArgsConstructor
@SuperBuilder
public class DefaultPagingParams<T extends DomainObject> extends EntityPagingParams<T> {
    @Override
    public void generateSpecification(List<Predicate> predicates, Root<T> root, CriteriaQuery<?> query, CriteriaBuilder builder) {

    }
}
